package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysAedMapper;
import com.ruoyi.system.domain.SysAed;
import com.ruoyi.system.service.ISysAedService;

/**
 * AED信息Service业务层处理
 * 
 * @author ruoyi
 */
@Service
public class SysAedServiceImpl implements ISysAedService {
    private final SysAedMapper sysAedMapper;

    public SysAedServiceImpl(SysAedMapper sysAedMapper) {
        this.sysAedMapper = sysAedMapper;
    }

    /**
     * 查询AED信息
     * 
     * @param id AED信息主键
     * @return AED信息
     */
    @Override
    public SysAed selectSysAedById(Long id) {
        return sysAedMapper.selectSysAedById(id);
    }

    /**
     * 查询AED信息列表
     * 
     * @param sysAed AED信息
     * @return AED信息
     */
    @Override
    public List<SysAed> selectSysAedList(SysAed sysAed) {
        return sysAedMapper.selectSysAedList(sysAed);
    }

    /**
     * 新增AED信息
     * 
     * @param sysAed AED信息
     * @return 结果
     */
    @Override
    public int insertSysAed(SysAed sysAed) {
        return sysAedMapper.insertSysAed(sysAed);
    }

    /**
     * 修改AED信息
     * 
     * @param sysAed AED信息
     * @return 结果
     */
    @Override
    public int updateSysAed(SysAed sysAed) {
        return sysAedMapper.updateSysAed(sysAed);
    }

    /**
     * 批量删除AED信息
     * 
     * @param ids 需要删除的AED信息主键
     * @return 结果
     */
    @Override
    public int deleteSysAedByIds(Long[] ids) {
        return sysAedMapper.deleteSysAedByIds(ids);
    }

    /**
     * 删除AED信息信息
     * 
     * @param id AED信息主键
     * @return 结果
     */
    @Override
    public int deleteSysAedById(Long id) {
        return sysAedMapper.deleteSysAedById(id);
    }
}